﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Web4Comment.Service;

namespace Web4Comment.sns
{

    public partial class snsAuthorize : System.Web.UI.Page
    {
        SNSService service = new SNSService();

        protected void Page_Load(object sender, EventArgs e)
        {
            if ((String)Session["username"] == null || (String)Session["username"] == "")
            {
                Response.Redirect("./logon.aspx");
            }

            if (Request["sns_id"] == null)
                Response.Redirect("/link.aspx");

            service.authorize(int.Parse(Request["sns_id"]));

        }
    }
}